/**
 * @file simple_widget.cpp
 * @author ThomasKingFree (dulu150@126.com)
 * @brief
 * @version 0.1
 * @date 2021-03-21
 *
 * @copyright Copyright (c) 2021
 *
 */

#include "widgets/simple_widget.h"

namespace YueGUI {
SimpleWidget::SimpleWidget() {}

SimpleWidget::~SimpleWidget() {}

void SimpleWidget::Draw(const Rect &dirty) {
    Rect intersectRect = dirty;
    if (intersectRect.Intersect(rect_) == false) {
        return;
    }
    OnDraw(intersectRect);
}

void SimpleWidget::OnDraw(const Rect &dirty) {}
} // namespace YueGUI
